package com.zhangxu.microservice.system.web.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 批量上传资源树请求
 */
@Data
@Schema(description = "批量上传资源树请求")
public class BatchUploadResourceTreeReq {

    @Schema(description = "系统ID", example = "1")
    @NotNull(message = "系统编码不能为空")
    private String appCode;

    @Schema(description = "资源树列表（顶级资源）")
    @NotEmpty(message = "资源树列表不能为空")
    @Valid
    private List<ResourceTreeReq> resources;
}